﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UpDownLoad.aspx.cs" Inherits="Workflow.UpDownLoad" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
      <title></title>
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="../Css/style.css" />
    <script type="text/javascript" src="../Js/jquery.js"></script>
    <script type="text/javascript" src="../Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="../Js/bootstrap.js"></script>
    <script type="text/javascript" src="../Js/ckform.js"></script>
    <script type="text/javascript" src="../Js/common.js"></script>

    <script type="text/javascript" src="Scripts/MyJquery.js"></script>
    <script type="text/javascript" src="Scripts/jquery.js"></script>
    <script type="text/javascript" src="Scripts/jquery.pagination.js"></script>
    <script type="text/javascript" src="Scripts/Pageination.js"></script>

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
</head>
<body>
	<form id="form1" runat="server" enctype="multipart/form-data">  
        <div id="upload" runat="server">
            <input id="file" type="file" name="file" runat="server" />  
            <asp:Button ID="Button1" CssClass="btn info" runat="server" Text="上传" OnClick="Button1_Click" />
            <%--<button id="Button1" class="btn info">上传</button>--%>
        </div>
	   
        <div>
            <%-- <div id="Pagination" class="pagination definewidth m10"></div>--%>
                 <table class="table table-bordered definewidth m10">
                    <thead>
                        <tr>
                            <th>文件名</th>
                            <th></th>
                        </tr>               
                    </thead>
                    <tbody id="Searchresult">
                        <% for (int i = 0; i < resultList.Count; i++) %>
                        <% { %>
                        <tr class="result">
                            <td><% =resultList[i].FileName %></td>
                            <td><a class="DownLoad" href="Server.ashx?FileName=<%=resultList[i].FileName %>&FileAddress=<%=resultList[i].FileAddress %>&Type=DownLoad">下载</a></td>
                        </tr>
                        <% }%>
                    </tbody>
                    <%--<tbody id="hiddenresult" style="display:none">
                        <% for (int i = 0; i < resultList.Count; i++) %>
                        <% { %>
                        <tr class="result">
                            <td><% =resultList[i].FileName %></td>
                            <td><a href="Server.ashx">下载</a></td>
                        </tr>
                        <% }%>
                    </tbody>--%>
                 </table>
        </div>
          
    </form>
    <script>
        $(document).ready(function () {
            $("#DownLoad").click(function () {
                var url = $(this).attr("href");
                $.ajax({
                    type: "get",
                    url: url,
                    success: function (data) {
                   
                    }
                });
            });
            return false;
        });
    </script>
</body>
</html>
